package com.hongye.house.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hongye.common.utils.PageUtils;
import com.hongye.common.utils.Query;

import com.hongye.house.dao.PublishTypeDao;
import com.hongye.house.entity.PublishTypeEntity;
import com.hongye.house.service.PublishTypeService;


@Service("publishTypeService")
public class PublishTypeServiceImpl extends ServiceImpl<PublishTypeDao, PublishTypeEntity> implements PublishTypeService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<PublishTypeEntity> page = this.page(
                new Query<PublishTypeEntity>().getPage(params),
                new QueryWrapper<PublishTypeEntity>()
        );

        return new PageUtils(page);
    }

}